const mongoose = require("mongoose");
const { Schema } = mongoose;

//管理员数据结构
const adminSchema = new Schema({
    username: String,
    password: String,
    nickname: String,
});
//根据schema创建model
const adminModel = mongoose.model("admin", adminSchema);
//导出管理员model
module.exports = adminModel;
